package com.auto.survey.activity.monitoring.entity.relations

import androidx.room.Embedded
import androidx.room.Relation
import com.auto.survey.activity.monitoring.entity.MonitoringPoint
import com.auto.survey.activity.monitoring.entity.MonitoringPointCtrlObservation

data class MonitoringPointWithCtrlObserv(
    /**
     * 测点信息
     */
    @Embedded val point: MonitoringPoint,
    /**
     * 测点关联的观测数据列表，按观测时间降序排列
     */
    @Relation(
        parentColumn = "id",
        entityColumn = "monitoringPointId"
    )
    val observations: List<MonitoringPointCtrlObservation>
)